package com.hxkj.service.wechat;

import com.hxkj.domain.po.AppletArticle;
import com.platform.common.domain.result.ResultPageStruct;
import com.platform.common.domain.to.PageTo;

/**
 * 文章库Service
 * <p>
 * Created by zzx on 2018/6/6.
 */
public interface AppletArticleService {

    /**
     * 获取文章库列表
     *
     * @param
     * @return
     * @throws Exception
     */
    ResultPageStruct<AppletArticle> getAppletArticleList(AppletArticle article, PageTo pageParam) throws Exception;


    /**
     * 查询一条文章库 文章信息
     *
     * @param article
     * @return
     * @throws Exception
     */
    AppletArticle getAppletArticle(AppletArticle article) throws Exception;


    /**
     * 修改一条文章库 文章信息
     *
     * @param article
     */
    void updateAppletArticle(AppletArticle article) throws Exception;


    /**
     * 文章恢复
     *
     * @param article
     */
    void AppletArticleRecover(AppletArticle article) throws Exception;

    /**
     * 批量软删除文章库 文章至回收站
     *
     * @param article
     */
    void removerAppletArticle(AppletArticle article) throws Exception;

    /**
     * 文章库 发布一条文章信息
     *
     * @param article
     */
    void saveAppletArticle(AppletArticle article) throws Exception;

    /**
     * 从文章库回收站中彻底删除文章
     *
     * @param article
     */
    void deleteAppletArticle(AppletArticle article) throws Exception;

}
